//
//  Bookmark.m
//  ebook
//
//  Created by 吴超飞 on 16/2/25.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import "Bookmark.h"

@implementation Bookmark

-(id)initWithDictionary:(NSDictionary *)dic{
    
    self = [super init];
    if (self) {
        self.bookid = dic[@"bookid"];
        self.chapterid = dic[@"chapterid"];
        self.chaptername = dic[@"chaptername"];
        self.percent = dic[@"percent"];
    }
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    
    Bookmark *copyInstance = [[[self class] allocWithZone:zone] init];
    copyInstance.bookid = [self.bookid copyWithZone:zone];
    copyInstance.chapterid = [self.chapterid copyWithZone:zone];
    copyInstance.chaptername = [self.chaptername copyWithZone:zone];
    copyInstance.percent = [self.percent copyWithZone:zone];
    return copyInstance;
}

@end
